#inicio
all:
	gcc -c Kernel.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions -I../include
	nasm -f aout kernel_start.asm -o Loader.o
	gcc -c support.c -o support.o 
	@echo LINKANDO
	ld -T link2.ld -o kernel.bin loader.o support.o kernel.o -L../lib -lgm -lkbd -lsystem -lidt -lpic -lio -lints -lvideo -lpit -lstdlib -lstring -ldevice -lfd -ldma -lfat 
	xcopy kernel.bin ..\bin /Q /Y
	
#fim
